import Home from '@/pages/home';
import Modelshow from '@/pages/modelshow';
import { Navigate, useRoutes } from 'react-router-dom';


const routerData = [
    {
        path: '/home',
        element: <Home />
    },
    {
        path: '/modelshow',
        element: <Modelshow />
    },
    {
        path: '*',
        element: <Navigate to='/home' />
    }
];

const Routes = () => useRoutes(routerData);


export default Routes;